﻿using UnityEngine;
using System.Collections;

public class Bird : MonoBehaviour {

    private Rigidbody birdRigibody;

    void Start()
    {
        birdRigibody = this.GetComponent<Rigidbody>();
        birdRigibody.velocity = new Vector3(2, 0, 0);
    }

	// Update is called once per frame
	void Update () {

        if (Input.GetMouseButton(0))
        {
            birdRigibody.velocity = new Vector3(birdRigibody.velocity.x, birdRigibody.velocity.y + 1.5f, birdRigibody.velocity.z);
        }
	}
}
